home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update27.zoo / gcc-233 / Makefile.st < prev    next >
Encoding:
Makefile  |  1992-12-28  |  18.6 KB  |  506 lines

  1. # Makefile for GNU C NATIVE COMPILER for the atariST/TT series hosted
  2. #  on a Sparc host (tested only on Sun)S 4.0.3)
  3. #  NOTE: requires alloca.c from the emacs dist.
  4. #
  5.  
  6. # Makefile for GNU C compiler.
  7. #   Copyright (C) 1987 Free Software Foundation, Inc.
  8.  
  9. #This file is part of GNU CC.
  10.  
  11. #GNU CC is distributed in the hope that it will be useful,
  12. #but WITHOUT ANY WARRANTY.  No author or distributor
  13. #accepts responsibility to anyone for the consequences of using it
  14. #or for whether it serves any particular purpose or works at all,
  15. #unless he says so in writing.  Refer to the GNU CC General Public
  16. #License for full details.
  17.  
  18. #Everyone is granted permission to copy, modify and redistribute
  19. #GNU CC, but only under the conditions described in the
  20. #GNU CC General Public License.   A copy of this license is
  21. #supposed to have been given to you along with GNU CC so you
  22. #can know your rights and responsibilities.  It should be in a
  23. #file named COPYING.  Among other things, the copyright notice
  24. #and this notice must be preserved on all copies.
  25.  
  26. .NOEXPORT: # This tells GNU Make version 3
  27.        # not to put all the variables in the environment.
  28.  
  29.  
  30. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  31. CROSSBIN = $(CROSSDIR)/bin
  32. CROSSLIB = $(CROSSDIR)/lib
  33. CROSSINC = $(CROSSDIR)/include
  34.  
  35. DFLAGS = -DCROSSDIR=\"\"
  36. CFLAGS = $(DFLAGS) -O2 -fomit-frame-pointer -I$(CROSSINC) -I./config -I. -Datarist=1
  37. # LDFLAGS = 
  38. HOSTCFLAGS = $(DFLAGS) -O -I./config -I.
  39. # HOSTLDFLAGS =
  40. CC = $(CROSSBIN)/cgcc -pipe
  41. # hosts cc (give full path to gcc is hosts gcc is not before . in your PATH)
  42. HOSTCC=gcc
  43. # OLDCC should not be the GNU C compiler.
  44. OLDCC = cc
  45. BISON = bison
  46. BISONFLAGS=
  47. AR = ar
  48. SHELL = /bin/sh
  49.  
  50. bindir = 
  51. libdir = 
  52.  
  53. # These are what you would need on HPUX:
  54. # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  55. # -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
  56. # bites whenever tree.def, rtl.def or machmode.def is included
  57. # (ie., on every source file).
  58. # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  59. # For CCLIBFLAGS you might want to specify the switch that
  60. # forces only 68000 instructions to be used.
  61.  
  62. # If you are making gcc for the first time, and if you are compiling it with
  63. # a non-gcc compiler, and if your system doesn't have a working alloca() in any
  64. # of the standard libraries (as is true for HP/UX or Genix),
  65. # then get alloca.c from GNU Emacs and un-comment the following line:
  66. # ALLOCA = alloca.o
  67.  
  68. # If your system has alloca() in /lib/libPW.a, un-comment the following line:
  69. # CLIB= -lPW
  70.   
  71. # If your system's malloc() routine fails for any reason (as it does on
  72. # certain versions of Genix), try getting the files
  73. # malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
  74. # MALLOC = malloc.o
  75.  
  76. # If you are running GCC on an Apollo, you will need this:
  77. # CFLAGS = -g -O -M 3000 -U__STDC__ -DSHORT_ENUM_BUG
  78.  
  79. # Change this to a null string if obstacks are installed in the
  80. # system library.
  81. OBSTACK=obstack.o
  82. OBSTACK1=obstack.oo
  83.  
  84. # Dependency on obstack, alloca, malloc or whatever library facilities
  85. # are not installed in the system libraries.
  86. LIBDEPS= $(OBSTACK)
  87. LIBDEPS1= $(OBSTACK1) $(HOSTALLOCA) $(MALLOC)
  88.  
  89. # How to link with both our special library facilities
  90. # and the system's installed libraries.
  91. LIBS = $(OBSTACK)
  92. LIBS1 = $(OBSTACK1) $(HOSTALLOCA) $(MALLOC) $(MALLOC1) $(CLIB)
  93.  
  94. DIR = ../gcc
  95.  
  96. # Object files of CC1.
  97. # Language-specific object files for C.
  98. C_OBJS = c-parse.o c-lang.o c-lex.o \
  99.  c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-pragma.o
  100.  
  101. # Language-specific object files for C++.
  102. CPLUS_OBJS = cp-parse.o cp-decl.o cp-decl2.o \
  103.    cp-typeck.o cp-type2.o cp-tree.o cp-ptree.o \
  104.    cp-cvt.o cp-search.o cp-lex.o cp-gc.o cp-call.o \
  105.    cp-class.o cp-init.o cp-method.o cp-except.o \
  106.    cp-expr.o cp-pt.o cp-edsel.o cp-xref.o \
  107.    $(CPLUS_INPUT) cp-spew.o c-common.o
  108.  
  109. # Language-independent object files.
  110. OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
  111.  function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
  112.  rtl.o print-rtl.o rtlanal.o dbxout.o sdbout.o dwarfout.o emit-rtl.o \
  113.  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
  114.  regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o \
  115.  insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
  116.  insn-recog.o insn-extract.o insn-output.o insn-emit.o \
  117.  insn-attrtab.o aux-output.o getpwd.o
  118.  
  119. GCC_PASSES=gcc cc1 cpp
  120.  
  121. # Files to be copied away after each stage in building.
  122. STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
  123.  insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
  124.  insn-attr.h insn-attrtab.c \
  125.  stamp-flags stamp-config stamp-codes \
  126.  stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
  127.  stamp-attr stamp-attrtab \
  128.  genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
  129.  genattrtab genattr \
  130.  $(GCC_PASSES) $(EXTRA_PARTS) gcc-cross cccp cc1plus cc1obj enquire \
  131.  protoize unprotoize specs collect2
  132.  
  133. # Header files that are made available to programs compiled with gcc.
  134. USER_H = stddef.h stdarg.h assert.h va-*.h limits.h
  135.  
  136. # If you want to recompile everything, just do rm *.o.
  137. # CONFIG_H = config.h tm.h
  138. CONFIG_H =
  139. RTL_H = rtl.h rtl.def machmode.h machmode.def
  140. TREE_H = tree.h real.h tree.def machmode.h machmode.def
  141. CPLUS_TREE_H = $(TREE_H) cp-tree.h cp-tree.def
  142.  
  143. ALL =  gcc.ttp gcc-cc1.ttp gcc-cpp.ttp
  144.  
  145. all : $(ALL)
  146.  
  147. compilations: ${OBJS}
  148.  
  149. gcc.ttp: gcc.o version.o $(LIBDEPS)
  150.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc.ttp gcc.o version.o $(LIBS)
  151.  
  152. gcc.o: gcc.c $(CONFIG_H)
  153.     $(CC) $(CFLAGS) -DDEFAULT_TARGET_MACHINE=\"atariST\" -c gcc.c
  154.  
  155. gcc-cc1.ttp: $(C_OBJS) $(OBJS) $(LIBDEPS)
  156.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1.ttp $(C_OBJS) $(OBJS) $(LIBS)
  157.  
  158. gcc-cc1+.ttp: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
  159.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1+.ttp $(CPLUS_OBJS) $(OBJS) $(LIBS)
  160.  
  161. gcc-cc1o.ttp: $(OBJC_OBJS) $(OBJS) $(LIBDEPS)
  162.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1o.ttp $(OBJC_OBJS) $(OBJS) $(LIBS)
  163.  
  164. # C-language specific files.
  165.  
  166. c-parse.o : c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h input.h flags.h
  167.     $(CC) $(CFLAGS) -c c-parse.c
  168. c-parse.c c-parse.h: c-parse.y
  169.     $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
  170. c-parse.y: c-parse.in cond.awk
  171.     awk -f cond.awk objc=0 c-parse.in > c-parse.y
  172.  
  173. c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  174. c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  175. c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
  176. c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h c-parse.h \
  177.     input.h flags.h
  178. c-aux-info.o : c-aux-info.c  $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  179. c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
  180.  
  181. # C++ language specific files.
  182.  
  183. cp-parse.o : cp-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  184.     $(CC) -c $(CFLAGS) cp-parse.c
  185.  
  186. cp-parse.c cp-parse.h : cp-parse.y
  187.     @echo expect 30 shift/reduce conflicts and 14 reduce/reduce conflicts
  188.     $(BISON) $(BISONFLAGS) -d -o cp-parse.c cp-parse.y
  189.     grep '^#define[     ]*YYEMPTY' cp-parse.c >>cp-parse.h
  190.  
  191. cp-spew.o : cp-spew.c $(CONFIG_H) $(CPLUS_TREE_H) \
  192.    cp-parse.h flags.h
  193. cp-lex.o : cp-lex.c $(CONFIG_H) $(CPLUS_TREE_H) \
  194.    cp-parse.h cp-input.c flags.h
  195. cp-decl.o : cp-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  196.   cp-lex.h cp-decl.h stack.h
  197. cp-decl2.o : cp-decl2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  198.   cp-lex.h cp-decl.h
  199. cp-type2.o : cp-type2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  200. cp-typeck.o : cp-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  201. cp-class.o : cp-class.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h \
  202.     cp-class.h flags.h
  203. cp-call.o : cp-call.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h cp-class.h \
  204.     flags.h
  205. cp-init.o : cp-init.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  206. cp-method.o : cp-method.c $(CONFIG_H) $(CPLUS_TREE_H)
  207. cp-cvt.o : cp-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
  208. cp-search.o : cp-search.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  209. cp-tree.o : cp-tree.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  210. cp-ptree.o : cp-ptree.c $(CONFIG_H) $(CPLUS_TREE_H)
  211. cp-gc.o : cp-gc.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  212. cp-except.o : cp-except.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  213. cp-expr.o : cp-expr.c $(CONFIG_H) $(CPLUS_TREE_H) $(RTL_H) flags.h \
  214.   expr.h insn-codes.h
  215. cp-edsel.o : cp-edsel.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  216. cp-xref.o : cp-xref.c $(CONFIG_H) $(CPLUS_TREE_H)
  217. cp-pt.o : cp-pt.c $(CONFIG_H) $(CPLUS_TREE_H) cp-decl.h cp-parse.h
  218.  
  219. # Objectionable C language specific files.
  220.  
  221. objc-parse.o : objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
  222.    c-tree.h input.h flags.h objc-actions.h
  223.     $(CC) $(CFLAGS) -c objc-parse.c
  224. objc-parse.c : objc-parse.y
  225.     $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c
  226.  
  227. objc-actions.o : objc-actions.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h \
  228.    flags.h objc-actions.h
  229.  
  230. # A file used by all variants of C.
  231.  
  232. c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  233.  
  234.  
  235. # Language-independent files.
  236. dumpvers: dumpvers.c
  237.  
  238. version.o: version.c
  239. obstack.o: obstack.c
  240.  
  241. tree.o : tree.c $(CONFIG_H) $(TREE_H) gvarargs.h flags.h function.h
  242. print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
  243. stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
  244. fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h 
  245. toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h \
  246.  insn-attr.h xcoffout.h
  247.  
  248. rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
  249.  
  250. print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
  251. rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
  252.  
  253. varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h \
  254.    insn-codes.h expr.h hard-reg-set.h regs.h xcoffout.h
  255. function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  256.    insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
  257.    recog.h output.h
  258. stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  259.    insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h recog.h
  260. expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) gvarargs.h flags.h function.h  \
  261.    insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h typeclass.h
  262. calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h \
  263.    insn-flags.h
  264. expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  265.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h real.h
  266. explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
  267.    insn-config.h expr.h recog.h insn-flags.h insn-codes.h
  268. optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  269.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h
  270. dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h \
  271.    insn-config.h reload.h gstab.h xcoffout.h
  272. sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h flags.h \
  273.    insn-config.h reload.h
  274. dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) dwarf.h flags.h \
  275.    insn-config.h reload.h output.h
  276. xcoffout.o : xcoffout.c $(CONFIG_H) $(TREE_H) $(RTL_H) xcoffout.h flags.h
  277. emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) flags.h gvarargs.h function.h  \
  278.    regs.h insn-config.h insn-codes.h real.h expr.h
  279.  
  280. integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
  281.    insn-flags.h insn-config.h insn-codes.h expr.h real.h function.h
  282.  
  283. jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
  284.    insn-config.h insn-flags.h insn-codes.h expr.h real.h
  285. stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
  286.  
  287. cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
  288.    insn-config.h recog.h
  289. loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \
  290.    insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h
  291. unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
  292.    integrate.h regs.h flags.h expr.h loop.h
  293. flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
  294.    basic-block.h regs.h hard-reg-set.h output.h
  295. combine.o : combine.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h  \
  296.    insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
  297.    basic-block.h recog.h real.h
  298. regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
  299.    basic-block.h regs.h insn-config.h recog.h 
  300. local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
  301.    regs.h hard-reg-set.h insn-config.h recog.h output.h
  302. global.o : global.c $(CONFIG_H) $(RTL_H) flags.h  \
  303.    basic-block.h regs.h hard-reg-set.h insn-config.h output.h
  304.  
  305. reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
  306.    reload.h recog.h hard-reg-set.h insn-config.h insn-codes.h regs.h real.h
  307. reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h expr.h \
  308.    reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
  309.    basic-block.h recog.h output.h
  310. caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
  311.    regs.h hard-reg-set.h insn-config.h basic-block.h recog.h reload.h expr.h
  312. reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
  313.    basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
  314.    flags.h output.h
  315. sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
  316.    flags.h insn-config.h insn-attr.h
  317. final.o : final.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h regs.h \
  318.    recog.h conditions.h insn-config.h insn-attr.h real.h output.h \
  319.    hard-reg-set.h insn-codes.h gstab.h xcoffout.h
  320. recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
  321.    regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
  322.    insn-flags.h insn-codes.h real.h
  323. reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
  324.    regs.h hard-reg-set.h flags.h insn-config.h
  325.    
  326. aux-output.o : aux-output.c $(CONFIG_H) \
  327.    $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
  328.    insn-flags.h output.h insn-attr.h insn-codes.h
  329.  
  330. # Now the source files that are generated from the machine description.
  331.  
  332. .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
  333.   insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
  334.   insn-attr.h insn-attrtab.c
  335.  
  336. insn-config.h : md genconfig
  337.     ./genconfig md > tmp-insn-config.h
  338.     ./move-if-change tmp-insn-config.h insn-config.h
  339.  
  340. insn-flags.h : md genflags
  341.     ./genflags md > tmp-insn-flags.h
  342.     ./move-if-change tmp-insn-flags.h insn-flags.h
  343.  
  344. insn-codes.h : md gencodes
  345.     ./gencodes md > tmp-insn-codes.h
  346.     ./move-if-change tmp-insn-codes.h insn-codes.h
  347.  
  348. insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h insn-config.h
  349.     $(CC) $(CFLAGS) -c insn-emit.c
  350.  
  351. insn-emit.c : md genemit
  352.     ./genemit md > tmp-insn-emit.c
  353.     ./move-if-change tmp-insn-emit.c insn-emit.c
  354.  
  355. insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
  356.     $(CC) $(CFLAGS) -c insn-recog.c
  357.  
  358. insn-recog.c : md genrecog
  359.     ./genrecog md > tmp-insn-recog.c
  360.     ./move-if-change tmp-insn-recog.c insn-recog.c
  361.  
  362. insn-extract.o : insn-extract.c $(RTL_H)
  363.     $(CC) $(CFLAGS) -c insn-extract.c
  364.  
  365. insn-extract.c : md genextract
  366.     ./genextract md > tmp-insn-extract.c
  367.     ./move-if-change tmp-insn-extract.c insn-extract.c
  368.  
  369. insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h
  370.     $(CC) $(CFLAGS) -c insn-peep.c
  371.  
  372. insn-peep.c : md genpeep
  373.     ./genpeep md > tmp-insn-peep.c
  374.     ./move-if-change tmp-insn-peep.c insn-peep.c
  375.  
  376. insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h insn-flags.h conditions.h output.h aux-output.c
  377.     $(CC) $(CFLAGS) -c insn-output.c
  378.  
  379. insn-output.c : md genoutput
  380.     ./genoutput md > tmp-insn-output.c
  381.     ./move-if-change tmp-insn-output.c insn-output.c
  382.  
  383. insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
  384.      insn-attr.h insn-config.h
  385.     $(CC) $(CFLAGS) -c insn-attrtab.c
  386.  
  387. insn-attr.h: md genattr
  388.     ./genattr md > tmp-attr.h
  389.     ./move-if-change tmp-attr.h insn-attr.h
  390.  
  391. insn-attrtab.c: md genattrtab
  392.     ./genattrtab md > tmp-attrtab.c
  393.     ./move-if-change tmp-attrtab.c insn-attrtab.c
  394.  
  395.  
  396. # Now the programs that generate those files.
  397.  
  398. genconfig : genconfig.oo rtl.oo $(LIBDEPS1)
  399.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genconfig genconfig.oo rtl.oo $(LIBS1)
  400.  
  401. genconfig.oo : genconfig.c $(RTL_H)
  402.     $(HOSTCC) $(HOSTCFLAGS) -c genconfig.c -o genconfig.oo
  403.  
  404. genflags : genflags.oo rtl.oo $(LIBDEPS1)
  405.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genflags genflags.oo rtl.oo $(LIBS1)
  406.  
  407. genflags.oo : genflags.c $(RTL_H)
  408.     $(HOSTCC) $(HOSTCFLAGS) -c genflags.c -o genflags.oo
  409.  
  410. gencodes : gencodes.oo rtl.oo $(LIBDEPS1)
  411.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o gencodes gencodes.oo rtl.oo $(LIBS1)
  412.  
  413. gencodes.oo : gencodes.c $(RTL_H)
  414.     $(HOSTCC) $(HOSTCFLAGS) -c gencodes.c -o gencodes.oo
  415.  
  416. genemit : genemit.oo rtl.oo $(LIBDEPS1)
  417.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genemit genemit.oo rtl.oo $(LIBS1)
  418.  
  419. genemit.oo : genemit.c $(RTL_H)
  420.     $(HOSTCC) $(HOSTCFLAGS) -c genemit.c -o genemit.oo
  421.  
  422. genrecog : genrecog.oo rtl.oo $(LIBDEPS1)
  423.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genrecog genrecog.oo rtl.oo $(LIBS1)
  424.  
  425. genrecog.oo : genrecog.c $(RTL_H)
  426.     $(HOSTCC) $(HOSTCFLAGS) -c genrecog.c -o genrecog.oo
  427.  
  428. genextract : genextract.oo rtl.oo $(LIBDEPS1)
  429.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genextract genextract.oo rtl.oo $(LIBS1)
  430.  
  431. genextract.oo : genextract.c $(RTL_H)
  432.     $(HOSTCC) $(HOSTCFLAGS) -c genextract.c -o genextract.oo
  433.  
  434. genpeep : genpeep.oo rtl.oo $(LIBDEPS1)
  435.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genpeep genpeep.oo rtl.oo $(LIBS1)
  436.  
  437. genpeep.oo : genpeep.c $(RTL_H)
  438.     $(HOSTCC) $(HOSTCFLAGS) -c genpeep.c -o genpeep.oo
  439.  
  440. genoutput : genoutput.oo rtl.oo $(LIBDEPS1)
  441.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genoutput genoutput.oo rtl.oo $(LIBS1)
  442.  
  443. genoutput.oo : genoutput.c $(RTL_H)
  444.     $(HOSTCC) $(HOSTCFLAGS) -c genoutput.c -o genoutput.oo
  445.  
  446. genattr : genattr.oo rtl.oo $(LIBDEPS1)
  447.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genattr \
  448.      genattr.oo rtl.oo $(LIBS1)
  449.  
  450. genattr.oo : genattr.c $(RTL_H) config.h
  451.     $(HOSTCC) -c $(HOSTCFLAGS) genattr.c -o genattr.oo
  452.  
  453. genattrtab : genattrtab.oo rtl.oo rtlanal.oo $(LIBDEPS1)
  454.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genattrtab \
  455.      genattrtab.oo rtl.oo rtlanal.oo $(LIBS1)
  456.  
  457. genattrtab.oo : genattrtab.c $(RTL_H) config.h insn-config.h
  458.     $(HOSTCC) -c $(HOSTCFLAGS) genattrtab.c -o genattrtab.oo
  459.  
  460. rtl.oo : rtl.c $(CONFIG_H) $(RTL_H)
  461.     $(HOSTCC) $(HOSTCFLAGS) -c rtl.c -o rtl.oo
  462.  
  463. rtlanal.oo : rtlanal.c $(CONFIG_H) $(RTL_H)
  464.     $(HOSTCC) $(HOSTCFLAGS) -c rtlanal.c -o rtlanal.oo
  465.  
  466. obstack.oo : obstack.c
  467.     $(HOSTCC) $(HOSTCFLAGS) -c obstack.c -o obstack.oo
  468.  
  469. # Making the preprocessor
  470. gcc-cpp.ttp: cccp
  471.     -rm -f gcc-cpp.ttp
  472.     ln cccp gcc-cpp.ttp
  473.  
  474. cccp: cccp.o cexp.o version.o $(LIBDEPS)
  475.     $(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
  476. cexp.o: cexp.c
  477. cexp.c: cexp.y
  478.     $(BISON) cexp.y
  479.     mv cexp.tab.c cexp.c
  480. cccp.o: cccp.c
  481.  
  482. # gnulib is not deleted because deleting it would be inconvenient
  483. # for most uses of this target.
  484. clean:
  485.     -rm -f *.o *.oo $(STAGESTUFF)
  486.     -rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
  487.  
  488. # Get rid of every file that's generated from some other file (except INSTALL).
  489. realclean: clean
  490.     -rm -f $(ALL)
  491.     -rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
  492.     -rm -f errs gnulib TAGS 
  493.     -rm -f core report
  494.     -rm -f internals internals-* internals.?? internals.??s
  495.  
  496. # Copy the files into directories where they will be run.
  497. #install: all
  498. #    install cc1 $(libdir)/gcc-cc1
  499. #    install cpp $(libdir)/gcc-cpp
  500. #    install gcc $(bindir)
  501.  
  502. force:
  503.  
  504. #In GNU Make, ignore whether `stage*' exists.
  505. .PHONY: clean realclean
  506.